<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Web\Chat;
use App\Http\Controllers\Web\Doctor;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//Route::get('/', );

// 聊天级相关路由
//Route::any('/chat/home/{from}/{to}',    [Chat\ChatController::class, 'chatHome']);
//Route::any('/chat/home/{from}/{to}',    [Web\Chat\ChatController::class, 'chatHome']);
//Route::prefix('chat')->group(function () {
//    Route::get('home/{from}/{to}', [Chat\ChatController::class, 'chatHome']);
//});



//Route::any('/chat/home/{id}',                     'Web\Chat\ChatController@chatHome');

//Route::any('/doctor/list',   'Web\Doctor\DoctorController@doctorList');
Route::any('/doctor/list',   [Doctor\DoctorController::class, 'doctorList']);
Route::any('/doctor/list/data',   [Doctor\DoctorController::class, 'doctorListData']);

// restful
Route::resource('config/usage','Web\Config\UserController');
